package avicit.bdp.dds.dao.mapper;

import avicit.bdp.common.base.BaseDAO;
import avicit.bdp.dds.dao.entity.ProcessResourceSettings;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProcessResourceConfigMapper extends BaseDAO<ProcessResourceSettings> {

    /**
     * 通过流程定义ID删除资源配置数据
     *
     * @param processDefinitionId 流程定义ID
     */
    void deleteByProcessDefinitionId(@Param("processDefinitionId") String processDefinitionId);

    List<ProcessResourceSettings> getByProcessDefinitionId(@Param("processDefinitionId") String processDefinitionId);

    ProcessResourceSettings getSparkConfigByProcessDefinitionId(@Param("processDefinitionId") String processDefinitionId);
}
